﻿using PermissionManager.BLL;
using PermissionManager.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace PermissionManager.WebApi.Controllers
{
    public class RoleController : ApiController
    {
        /// <summary>
        /// 获取用户下的菜单权限
        /// </summary>
        /// <returns></returns>
        public UserRoleFunction Get(int userid)
        {
            RoleApIService roleApiService = new RoleApIService();
            return roleApiService.GetUserRoleFunction(userid);
        }
    }
}
